package com.koocloud.electroplatemanage.service;

import com.koocloud.electroplatemanage.common.pojo.ResponseTemplate;
import com.koocloud.electroplatemanage.pojo.OriginItems;

import java.util.List;

/**
 * @program:
 * @description:
 * @author: wjx
 * @create: 2020/11/17 16:33
 */
public interface OriginItemsService {
    /**
     * 通过主键id查找
     * @param pk
     * @return
     */
    ResponseTemplate selectByPk(String pk);

    /**
     * 通过镀槽编号查询一条数据
     * @param tankNo
     * @return
     */
    ResponseTemplate selectByTankNo(String tankNo);


    /**
     * 插入一组数据
     * @param originItemsList
     * @return
     */
    ResponseTemplate batchInsert(String tankNo,List<OriginItems> originItemsList);

    /**
     * 通过镀槽号删除数据
     * @param tankNo
     * @return
     */
    ResponseTemplate deleteByTankNo(String tankNo);
}
